package com.huawei.appmarket.service.store.awk.card;

import android.app.Activity;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.LinearLayout;
import android.widget.LinearLayout.LayoutParams;
import androidx.databinding.ViewDataBinding;
import com.huawei.appgallery.foundation.card.base.card.BaseDistCard;
import com.huawei.appgallery.foundation.ui.framework.cardframe.bean.BaseCardBean;
import com.huawei.appgallery.foundation.ui.framework.cardkit.bean.CardBean;
import com.huawei.appgallery.foundation.ui.framework.widget.Space;
import com.huawei.appmarket.service.store.awk.bean.SmallHorizontalAppListCardBean;
import com.huawei.fastengine.fastview.startFastappEngine.bean.RpkInfo;
import java.util.ArrayList;
import java.util.List;
import kotlin.Metadata;
import o.azb;
import o.cdn;
import o.chy;
import o.chz;
import o.cih;
import o.dof;
import o.dyf;
import o.ebi;
import o.ebk;
import o.epr;
import o.ewm.d;
import o.ewm.h;
import o.ewm.j;
import o.exj;
import o.fqm;
import o.fqr;
import o.fry;
import o.fsc;
import o.fsd;
import o.fsf;
import o.fsj;
import o.fsx;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

@Metadata(bv = {1, 0, 3}, d1 = {"\u0000\u0001\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\u000e\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0005\n\u0002\u0010\b\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0004\n\u0002\u0010!\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0004\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0010 \n\u0000\n\u0002\u0010\u000b\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0004\b\u0016\u0018\u0000 ;2\b\u0012\u0004\u0012\u00020\u00020\u0001:\u0001;B\r\u0012\u0006\u0010\u0003\u001a\u00020\u0004¢\u0006\u0002\u0010\u0005J\u0010\u0010\u001c\u001a\u00020\u001d2\u0006\u0010\u001e\u001a\u00020\u0015H\u0014J\u0016\u0010\u001f\u001a\b\u0012\u0002\b\u0003\u0018\u00010 2\u0006\u0010\u001e\u001a\u00020\u0015H\u0016J\u0012\u0010!\u001a\u00020\u001d2\b\u0010\"\u001a\u0004\u0018\u00010\u0002H\u0016J\u0018\u0010#\u001a\u00020\u00152\u0006\u0010\u0003\u001a\u00020\u00042\u0006\u0010$\u001a\u00020%H\u0002J\u0010\u0010&\u001a\u00020\u001b2\u0006\u0010\u0003\u001a\u00020\u0004H\u0014J\u0010\u0010'\u001a\u00020\u000f2\u0006\u0010\u0003\u001a\u00020\u0004H\u0002J\f\u0010(\u001a\b\u0012\u0004\u0012\u00020\u00070)J\u0010\u0010*\u001a\u00020+2\u0006\u0010,\u001a\u00020-H\u0002J\b\u0010.\u001a\u00020\u000fH\u0002J\u0012\u0010/\u001a\u00020\u001d2\b\u00100\u001a\u0004\u0018\u000101H\u0016J\u0012\u00102\u001a\u00020\u001d2\b\u00103\u001a\u0004\u0018\u000104H\u0016J\u0010\u00105\u001a\u00020\u001d2\b\u0010\u0012\u001a\u0004\u0018\u00010\u0013J\u0012\u00106\u001a\u00020\u001d2\b\u00107\u001a\u0004\u0018\u000108H\u0016J\u000e\u00109\u001a\u00020\u001d2\u0006\u0010:\u001a\u00020\u000fR\u0010\u0010\u0006\u001a\u0004\u0018\u00010\u0007X\u000e¢\u0006\u0002\n\u0000R\u001b\u0010\b\u001a\u00020\t8BX\u0002¢\u0006\f\n\u0004\b\f\u0010\r\u001a\u0004\b\n\u0010\u000bR\u0014\u0010\u000e\u001a\u00020\u000fX\u0004¢\u0006\b\n\u0000\u001a\u0004\b\u0010\u0010\u0011R\u0010\u0010\u0012\u001a\u0004\u0018\u00010\u0013X\u000e¢\u0006\u0002\n\u0000R\"\u0010\u0016\u001a\u0004\u0018\u00010\u00152\b\u0010\u0014\u001a\u0004\u0018\u00010\u0015@BX\u000e¢\u0006\b\n\u0000\u001a\u0004\b\u0017\u0010\u0018R\u0014\u0010\u0019\u001a\b\u0012\u0004\u0012\u00020\u001b0\u001aX\u0004¢\u0006\u0002\n\u0000¨\u0006<"}, d2 = {"Lcom/huawei/appmarket/service/store/awk/card/SmallHorizontalAppListCard;", "Lcom/huawei/appgallery/foundation/card/base/card/BaseDistCard;", "Lcom/huawei/appmarket/wisedist/databinding/SmallHorizontalAppListCardBinding;", "context", "Landroid/content/Context;", "(Landroid/content/Context;)V", "cardName", "", "exposureController", "Lcom/huawei/appmarket/service/exposure/control/ExposureController;", "getExposureController", "()Lcom/huawei/appmarket/service/exposure/control/ExposureController;", "exposureController$delegate", "Lkotlin/Lazy;", "extraGroupLayoutId", "", "getExtraGroupLayoutId", "()I", "interactiveControl", "Lcom/huawei/appmarket/service/interactive/control/InteractiveControl;", "<set-?>", "Landroid/view/View;", "moreLayout", "getMoreLayout", "()Landroid/view/View;", "singleItemCardList", "", "Lcom/huawei/appmarket/service/store/awk/card/SmallHorizontalAppListSingleItemCard;", "adjustLayout4RingDevice", "", "parent", "bindCard", "Lcom/huawei/appgallery/foundation/ui/framework/cardframe/card/BaseCard;", "bindCardBinding", "viewDataBind", "createExtraGroup", "linearLayout", "Landroid/widget/LinearLayout;", "createSingleItemCard", "getColumnCount", "getExposureDetail", "", "isShowMoreButton", "", "cardBean", "Lcom/huawei/appmarket/service/store/awk/bean/SmallHorizontalAppListCardBean;", "maxItemCount", "setCardChunk", "cardChunk", "Lcom/huawei/appgallery/foundation/ui/framework/cardkit/bean/CardChunk;", "setData", "data", "Lcom/huawei/appgallery/foundation/ui/framework/cardkit/bean/CardBean;", "setInteractiveControl", "setOnClickListener", "cardEventListener", "Lcom/huawei/appgallery/foundation/ui/framework/cardkit/bean/CardEventListener;", "setVisibility", "visible", "Companion", "WiseDist_release"}, k = 1, mv = {1, 1, 15})
public class SmallHorizontalAppListCard extends BaseDistCard<exj> {
    public static final a ʼ = new a();
    static final /* synthetic */ fsx[] ˋ = new fsx[]{fsf.ॱ(new fsj(fsf.ॱ(SmallHorizontalAppListCard.class), "exposureController", "getExposureController()Lcom/huawei/appmarket/service/exposure/control/ExposureController;"))};
    private final fqm ʻ = fqr.ˋ(c.ˊ);
    private ebk ʽ;
    private String ˊॱ;
    private final int ˋॱ = h.ʾˋ;
    @Nullable
    private View ॱॱ;
    private final List<SmallHorizontalAppListSingleItemCard> ᐝ = new ArrayList();

    @Metadata(bv = {1, 0, 3}, d1 = {"\u0000\u0018\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\b\u0002\n\u0002\u0010\u000e\n\u0000\n\u0002\u0010\b\n\u0000\b\u0003\u0018\u00002\u00020\u0001B\u0007\b\u0002¢\u0006\u0002\u0010\u0002R\u000e\u0010\u0003\u001a\u00020\u0004XT¢\u0006\u0002\n\u0000R\u000e\u0010\u0005\u001a\u00020\u0006XT¢\u0006\u0002\n\u0000¨\u0006\u0007"}, d2 = {"Lcom/huawei/appmarket/service/store/awk/card/SmallHorizontalAppListCard$Companion;", "", "()V", "TAG", "", "itemCountPerGroup", "", "WiseDist_release"}, k = 1, mv = {1, 1, 15})
    public static final class a {
        private a() {
        }
    }

    @Metadata(bv = {1, 0, 3}, d1 = {"\u0000/\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0002\n\u0000\n\u0002\u0010\b\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010 \n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000e\n\u0002\b\u0002*\u0001\u0000\b\n\u0018\u00002\u00020\u0001J\u0018\u0010\u0002\u001a\u00020\u00032\u0006\u0010\u0004\u001a\u00020\u00052\u0006\u0010\u0006\u001a\u00020\u0007H\u0016J \u0010\b\u001a\n\u0012\u0004\u0012\u00020\n\u0018\u00010\t2\u0006\u0010\u000b\u001a\u00020\f2\u0006\u0010\r\u001a\u00020\fH\u0016¨\u0006\u000e"}, d2 = {"com/huawei/appmarket/service/store/awk/card/SmallHorizontalAppListCard$setOnClickListener$listener$1", "Lcom/huawei/appgallery/foundation/ui/framework/cardkit/bean/CardEventListener;", "onClick", "", "eventType", "", "theCard", "Lcom/huawei/appgallery/foundation/ui/framework/cardkit/card/AbsCard;", "onGetCardBeans", "", "Lcom/huawei/appgallery/foundation/ui/framework/cardkit/bean/CardBean;", "appid", "", "layoutId", "WiseDist_release"}, k = 1, mv = {1, 1, 15})
    public static final class b implements chy {
        final /* synthetic */ SmallHorizontalAppListCard ˎ;
        final /* synthetic */ chy ॱ;

        b(SmallHorizontalAppListCard smallHorizontalAppListCard, chy o_chy) {
            this.ˎ = smallHorizontalAppListCard;
            this.ॱ = o_chy;
        }

        public void ˏ(int i, @NotNull cih o_cih) {
            Context context = null;
            fsd.ˊ((Object) o_cih, "theCard");
            chy o_chy = this.ॱ;
            if (o_chy != null) {
                o_chy.ˏ(i, o_cih);
            }
            CardBean ˌ = o_cih.ˌ();
            if (!(ˌ instanceof BaseCardBean)) {
                ˌ = null;
            }
            BaseCardBean baseCardBean = (BaseCardBean) ˌ;
            if (baseCardBean != null && ebi.ˏ(this.ˎ.ˊॱ)) {
                ebi ˊ = ebi.ˊ();
                Context ॱ = this.ˎ.ʼॱ;
                if (ॱ instanceof Activity) {
                    context = ॱ;
                }
                ˊ.ॱ((Activity) context, baseCardBean);
            }
        }

        @Nullable
        public List<CardBean> ˎ(@NotNull String str, @NotNull String str2) {
            fsd.ˊ((Object) str, RpkInfo.APPID);
            fsd.ˊ((Object) str2, "layoutId");
            return null;
        }
    }

    @Metadata(bv = {1, 0, 3}, d1 = {"\u0000\b\n\u0000\n\u0002\u0018\u0002\n\u0000\u0010\u0000\u001a\u00020\u0001H\n¢\u0006\u0002\b\u0002"}, d2 = {"<anonymous>", "Lcom/huawei/appmarket/service/exposure/control/ExposureController;", "invoke"}, k = 3, mv = {1, 1, 15})
    static final class c extends fsc implements fry<dyf> {
        public static final c ˊ = new c();

        c() {
            super(0);
        }

        public /* synthetic */ Object ˋ() {
            return ॱ();
        }

        @NotNull
        public final dyf ॱ() {
            return new dyf();
        }
    }

    private final dyf ʻ() {
        fqm o_fqm = this.ʻ;
        fsx o_fsx = ˋ[0];
        return (dyf) o_fqm.ˎ();
    }

    @org.jetbrains.annotations.NotNull
    public final java.util.List<java.lang.String> ˊ() {
        /* JADX: method processing error */
/*
Error: jadx.core.utils.exceptions.DecodeException: Load method exception in method: com.huawei.appmarket.service.store.awk.card.SmallHorizontalAppListCard.ˊ():java.util.List<java.lang.String>
	at jadx.core.dex.nodes.MethodNode.load(MethodNode.java:116)
	at jadx.core.dex.nodes.ClassNode.load(ClassNode.java:249)
	at jadx.core.ProcessClass.process(ProcessClass.java:34)
	at jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:306)
	at jadx.api.JavaClass.decompile(JavaClass.java:62)
Caused by: java.lang.NullPointerException
*/
        /*
        r0 = this;
        r3 = 0;
        r0 = r6.ᐝ;
        r0 = (java.lang.Iterable) r0;
        r1 = new java.util.ArrayList;
        r1.<init>();
        r1 = (java.util.Collection) r1;
        r4 = r0.iterator();
    L_0x0010:
        r0 = r4.hasNext();
        if (r0 == 0) goto L_0x0034;
    L_0x0016:
        r2 = r4.next();
        r0 = r2;
        r0 = (com.huawei.appmarket.service.store.awk.card.SmallHorizontalAppListSingleItemCard) r0;
        r0 = r0.ˉ();
        if (r0 != 0) goto L_0x002b;
    L_0x0023:
        r0 = 0;
        if (r0 == 0) goto L_0x0010;
    L_0x0027:
        r1.add(r2);
        goto L_0x0010;
    L_0x002b:
        r5 = r6.ʻ();
        r0 = r5.ˎ(r0);
        goto L_0x0024;
    L_0x0034:
        r1 = (java.util.List) r1;
        r1 = (java.lang.Iterable) r1;
        r0 = new java.util.ArrayList;
        r0.<init>();
        r0 = (java.util.Collection) r0;
        r2 = r1.iterator();
        r1 = r2.hasNext();
        if (r1 == 0) goto L_0x0085;
        r1 = r2.next();
        r1 = (com.huawei.appmarket.service.store.awk.card.SmallHorizontalAppListSingleItemCard) r1;
        r1 = r1.ˌ();
        r4 = r1 instanceof com.huawei.appmarket.service.store.awk.bean.HorizonalHomeCardItemBean;
        if (r4 != 0) goto L_0x0058;
        r1 = r3;
        r1 = (com.huawei.appmarket.service.store.awk.bean.HorizonalHomeCardItemBean) r1;
        if (r1 != 0) goto L_0x0065;
        r1 = r3;
        if (r1 == 0) goto L_0x0063;
        r0.add(r1);
        goto L_0x0043;
        r4 = new java.lang.StringBuilder;
        r4.<init>();
        r5 = r1.ॱॱ();
        r4 = r4.append(r5);
        r5 = "#$#";
        r4 = r4.append(r5);
        r1 = r1.u_();
        r1 = r4.append(r1);
        r1 = r1.toString();
        goto L_0x005d;
        r0 = (java.util.List) r0;
        return r0;
        */
        throw new UnsupportedOperationException("Method not decompiled: com.huawei.appmarket.service.store.awk.card.SmallHorizontalAppListCard.ˊ():java.util.List<java.lang.String>");
    }

    @org.jetbrains.annotations.Nullable
    public o.cgz<?> ˏ(@org.jetbrains.annotations.NotNull android.view.View r1) {
        /* JADX: method processing error */
/*
Error: jadx.core.utils.exceptions.DecodeException: Load method exception in method: com.huawei.appmarket.service.store.awk.card.SmallHorizontalAppListCard.ˏ(android.view.View):o.cgz<?>
	at jadx.core.dex.nodes.MethodNode.load(MethodNode.java:116)
	at jadx.core.dex.nodes.ClassNode.load(ClassNode.java:249)
	at jadx.core.ProcessClass.process(ProcessClass.java:34)
	at jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:306)
	at jadx.api.JavaClass.decompile(JavaClass.java:62)
Caused by: java.lang.NullPointerException
*/
        /*
        r0 = this;
        r9 = 3;
        r8 = 2;
        r7 = 1;
        r6 = 0;
        r0 = "parent";
        o.fsd.ˊ(r11, r0);
        r10.ʽ(r11);
        r0 = o.ewm.j.ʼﾞ;
        r0 = r11.findViewById(r0);
        r0 = (android.widget.TextView) r0;
        r10.ʿ = r0;
        r0 = o.ewm.j.ʼꞌ;
        r0 = r11.findViewById(r0);
        r10.ॱॱ = r0;
        r0 = o.ewm.j.ˉˋ;
        r0 = r11.findViewById(r0);
        r1 = "parent.findViewById(R.id.content_view)";
        o.fsd.ॱ(r0, r1);
        r0 = (android.widget.LinearLayout) r0;
        r10.ˎ(r11);
        r2 = r10.ʼॱ;
        if (r2 == 0) goto L_0x00ab;
    L_0x0032:
        r1 = o.ewm.j.ꜟˏ;
        r1 = r11.findViewById(r1);
        r3 = "parent.findViewById(R.id.first_group)";
        o.fsd.ॱ(r1, r3);
        r1 = (android.view.ViewGroup) r1;
        r3 = r10.ॱ(r2);
        switch(r3) {
            case 2: goto L_0x00c5;
            case 3: goto L_0x00ae;
            default: goto L_0x0046;
        };
    L_0x0046:
        r0 = o.frb.ˊ(r1);
        r0 = (java.lang.Iterable) r0;
        r3 = r0.iterator();
        r0 = r3.hasNext();
        if (r0 == 0) goto L_0x00dc;
    L_0x0056:
        r0 = r3.next();
        r0 = (android.view.View) r0;
        r1 = new java.lang.Integer[r9];
        r4 = o.ewm.j.ꜟˎ;
        r4 = java.lang.Integer.valueOf(r4);
        r1[r6] = r4;
        r4 = o.ewm.j.ʼᵎ;
        r4 = java.lang.Integer.valueOf(r4);
        r1[r7] = r4;
        r4 = o.ewm.j.ʿﾞ;
        r4 = java.lang.Integer.valueOf(r4);
        r1[r8] = r4;
        r1 = o.frj.ˏ(r1);
        r1 = (java.lang.Iterable) r1;
        r4 = r1.iterator();
        r1 = r4.hasNext();
        if (r1 == 0) goto L_0x00d7;
        r1 = r4.next();
        r1 = (java.lang.Number) r1;
        r1 = r1.intValue();
        r1 = r0.findViewById(r1);
        r5 = "tripleViewGroup.findViewById(it)";
        o.fsd.ॱ(r1, r5);
        r5 = r10.ˏ(r2);
        r5.ʽ(r1);
        r5.ˏ(r1);
        r1 = r10.ᐝ;
        r1.add(r5);
        goto L_0x0080;
    L_0x00ab:
        r10 = (o.cgz) r10;
        return r10;
    L_0x00ae:
        r3 = new android.view.View[r9];
        r1 = (android.view.View) r1;
        r3[r6] = r1;
        r1 = r10.ˋ(r2, r0);
        r3[r7] = r1;
        r0 = r10.ˋ(r2, r0);
        r3[r8] = r0;
        r0 = o.frj.ˏ(r3);
        goto L_0x004a;
    L_0x00c5:
        r3 = new android.view.View[r8];
        r1 = (android.view.View) r1;
        r3[r6] = r1;
        r0 = r10.ˋ(r2, r0);
        r3[r7] = r0;
        r0 = o.frj.ˏ(r3);
        goto L_0x004a;
        goto L_0x0050;
        r10 = (o.cgz) r10;
        goto L_0x00ad;
        */
        throw new UnsupportedOperationException("Method not decompiled: com.huawei.appmarket.service.store.awk.card.SmallHorizontalAppListCard.ˏ(android.view.View):o.cgz<?>");
    }

    public void ˏ(@org.jetbrains.annotations.Nullable com.huawei.appgallery.foundation.ui.framework.cardkit.bean.CardBean r1) {
        /* JADX: method processing error */
/*
Error: jadx.core.utils.exceptions.DecodeException: Load method exception in method: com.huawei.appmarket.service.store.awk.card.SmallHorizontalAppListCard.ˏ(com.huawei.appgallery.foundation.ui.framework.cardkit.bean.CardBean):void
	at jadx.core.dex.nodes.MethodNode.load(MethodNode.java:116)
	at jadx.core.dex.nodes.ClassNode.load(ClassNode.java:249)
	at jadx.core.ProcessClass.process(ProcessClass.java:34)
	at jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:306)
	at jadx.api.JavaClass.decompile(JavaClass.java:62)
Caused by: java.lang.NullPointerException
*/
        /*
        r0 = this;
        r3 = 0;
        super.ˏ(r10);
        r0 = r10 instanceof com.huawei.appmarket.service.store.awk.bean.SmallHorizontalAppListCardBean;
        if (r0 != 0) goto L_0x00c6;
    L_0x0008:
        r0 = 0;
        r0 = (com.huawei.appmarket.service.store.awk.bean.SmallHorizontalAppListCardBean) r0;
        if (r0 == 0) goto L_0x00c5;
    L_0x000d:
        r1 = r0.ʽˊ();
        if (r1 == 0) goto L_0x0048;
    L_0x0013:
        r1 = (java.lang.Iterable) r1;
        r2 = r1.iterator();
    L_0x0019:
        r1 = r2.hasNext();
        if (r1 == 0) goto L_0x0048;
    L_0x001f:
        r1 = r2.next();
        r1 = (com.huawei.appmarket.service.store.awk.bean.HorizonalHomeCardItemBean) r1;
        r4 = "it";
        o.fsd.ॱ(r1, r4);
        r4 = r0.ॱᐧ();
        r1.ʼ(r4);
        r4 = r0.ॱˉ();
        r1.ˋˋ(r4);
        r4 = r0.ॱꓸ();
        r1.ˏˏ(r4);
        r4 = r0.ॱˍ();
        r1.ᐝ(r4);
        goto L_0x0019;
    L_0x0048:
        r2 = r9.ʽ;
        if (r2 == 0) goto L_0x0052;
    L_0x004c:
        r1 = r0;
        r1 = (o.ebh) r1;
        r2.ˋ(r1);
    L_0x0052:
        r1 = r9.ʽ;
        if (r1 == 0) goto L_0x0059;
    L_0x0056:
        r1.ˊ();
    L_0x0059:
        r2 = r9.ॱॱ;
        if (r2 == 0) goto L_0x0067;
    L_0x005d:
        r1 = r9.ˏ(r0);
        if (r1 == 0) goto L_0x009e;
    L_0x0063:
        r1 = r3;
        r2.setVisibility(r1);
    L_0x0067:
        r1 = r0.ʽˊ();
        if (r1 == 0) goto L_0x00a1;
    L_0x006d:
        r0 = "cardBean.list_ ?: listOf()";
        o.fsd.ॱ(r1, r0);
        r0 = r1;
        r0 = (java.util.Collection) r0;
        r6 = r0.size();
        r0 = r9.ᐝ;
        r0 = (java.lang.Iterable) r0;
        r7 = r0.iterator();
        r2 = r3;
        r0 = r7.hasNext();
        if (r0 == 0) goto L_0x00c4;
    L_0x0088:
        r0 = r7.next();
        r4 = r2 + 1;
        if (r2 >= 0) goto L_0x0093;
        o.frj.ˊ();
        r0 = (com.huawei.appmarket.service.store.awk.card.SmallHorizontalAppListSingleItemCard) r0;
        if (r2 >= 0) goto L_0x00a6;
        r2 = 4;
        r0.ˏ(r2);
        r2 = r4;
        goto L_0x0082;
    L_0x009e:
        r1 = 8;
        goto L_0x0064;
    L_0x00a1:
        r1 = o.frj.ˎ();
        goto L_0x006d;
        if (r6 <= r2) goto L_0x0097;
        r0.ˏ(r3);
        r5 = r2 % 3;
        r8 = 2;
        if (r5 == r8) goto L_0x00c2;
        r5 = r2 + 1;
        if (r5 == r6) goto L_0x00c2;
        r5 = 1;
        r0.ॱ(r5);
        r2 = r1.get(r2);
        r2 = (com.huawei.appgallery.foundation.ui.framework.cardkit.bean.CardBean) r2;
        r0.ˏ(r2);
        goto L_0x009b;
        r5 = r3;
        goto L_0x00b5;
    L_0x00c5:
        return;
    L_0x00c6:
        r0 = r10;
        goto L_0x0009;
        */
        throw new UnsupportedOperationException("Method not decompiled: com.huawei.appmarket.service.store.awk.card.SmallHorizontalAppListCard.ˏ(com.huawei.appgallery.foundation.ui.framework.cardkit.bean.CardBean):void");
    }

    public void ॱ(@org.jetbrains.annotations.Nullable o.chy r1) {
        /* JADX: method processing error */
/*
Error: jadx.core.utils.exceptions.DecodeException: Load method exception in method: com.huawei.appmarket.service.store.awk.card.SmallHorizontalAppListCard.ॱ(o.chy):void
	at jadx.core.dex.nodes.MethodNode.load(MethodNode.java:116)
	at jadx.core.dex.nodes.ClassNode.load(ClassNode.java:249)
	at jadx.core.ProcessClass.process(ProcessClass.java:34)
	at jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:306)
	at jadx.api.JavaClass.decompile(JavaClass.java:62)
Caused by: java.lang.NullPointerException
*/
        /*
        r0 = this;
        r2 = new com.huawei.appmarket.service.store.awk.card.SmallHorizontalAppListCard$b;
        r2.<init>(r4, r5);
        r0 = r4.ᐝ;
        r0 = (java.lang.Iterable) r0;
        r3 = r0.iterator();
        r0 = r3.hasNext();
        if (r0 == 0) goto L_0x0021;
    L_0x0013:
        r0 = r3.next();
        r0 = (com.huawei.appmarket.service.store.awk.card.SmallHorizontalAppListSingleItemCard) r0;
        r1 = r2;
        r1 = (o.chy) r1;
        r0.ॱ(r1);
        goto L_0x000d;
        return;
        */
        throw new UnsupportedOperationException("Method not decompiled: com.huawei.appmarket.service.store.awk.card.SmallHorizontalAppListCard.ॱ(o.chy):void");
    }

    public SmallHorizontalAppListCard(@NotNull Context context) {
        fsd.ˊ((Object) context, "context");
        super(context);
    }

    public /* synthetic */ void ˊ(ViewDataBinding viewDataBinding) {
        ॱ((exj) viewDataBinding);
    }

    @Nullable
    public final View ˎ() {
        return this.ॱॱ;
    }

    public void ॱ(@Nullable chz o_chz) {
        super.ॱ(o_chz);
        this.ˊॱ = o_chz != null ? o_chz.ˏॱ() : null;
    }

    @NotNull
    protected SmallHorizontalAppListSingleItemCard ˏ(@NotNull Context context) {
        fsd.ˊ((Object) context, "context");
        return new SmallHorizontalAppListSingleItemCard(context);
    }

    public void ॱ(@Nullable exj o_exj) {
        super.ˊ(o_exj);
        ॱ(o_exj);
        this.ॱॱ = o_exj != null ? o_exj.ॱ : null;
    }

    public final void ˊ(@Nullable ebk o_ebk) {
        this.ʽ = o_ebk;
    }

    private final View ˋ(Context context, LinearLayout linearLayout) {
        linearLayout.addView(new Space(context), new LayoutParams((int) context.getResources().getDimension(d.ॱॱ), -1));
        View inflate = LayoutInflater.from(context).inflate(ˋ(), null);
        LayoutParams layoutParams = new LayoutParams(0, -1);
        layoutParams.weight = 1.0f;
        linearLayout.addView(inflate, layoutParams);
        fsd.ॱ(inflate, "extraGroup");
        return inflate;
    }

    private final boolean ˏ(SmallHorizontalAppListCardBean smallHorizontalAppListCardBean) {
        if (dof.ʽ(smallHorizontalAppListCardBean.ॱॱ())) {
            return false;
        }
        List ʽˊ = smallHorizontalAppListCardBean.ʽˊ();
        if ((ʽˊ != null ? ʽˊ.size() : 0) > ʼ() || smallHorizontalAppListCardBean.ʾॱ() != 0) {
            return true;
        }
        return false;
    }

    private final int ʼ() {
        Context context = this.ʼॱ;
        if (context != null) {
            return ॱ(context) * 3;
        }
        return 0;
    }

    private final int ॱ(Context context) {
        epr ˎ = epr.ˎ();
        fsd.ॱ(ˎ, "DeviceSession.getSession()");
        if (ˎ.ॱॱ()) {
            if (azb.ˎ(context)) {
                return 2;
            }
            return 1;
        } else if (cdn.ॱॱ() || azb.ˎ(context)) {
            return 2;
        } else {
            return 1;
        }
    }

    protected int ˋ() {
        return this.ˋॱ;
    }

    protected void ˎ(@NotNull View view) {
        fsd.ˊ((Object) view, "parent");
        azb.ˊ(view, j.ʿ);
        azb.ˊ(view, j.ˉˋ);
    }
}
